Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow creating repository from a template via the API #11665

Closed

Conversation

6543
Copy link
Member

@6543 6543 commented May 29, 2020

close #11535

@techknowlogick techknowlogick changed the title WIP: llow creating repository from a template via the API WIP: allow creating repository from a template via the API Jun 5, 2020
@stale
Copy link

stale bot commented Aug 5, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 5, 2020
@stale stale bot added the issue/stale label Aug 5, 2020
@6543
Copy link
Member Author

6543 commented Aug 19, 2020

I'm just thinking using a new api endpoint since extending POST /user/repos result in lot of fields who are never used in one either creating a new repo or from template

perhaps POST /user/repos/from_template ?

@stale stale bot removed the issue/stale label Aug 19, 2020
@zeripath
Copy link
Contributor

I think you should just be able to do this from the current API. What's the problem with just using "omitempty" on the Template settings bits if they're not being used?

Co-authored-by: zeripath <[email protected]>
@stale
Copy link

stale bot commented Oct 20, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions.

@stale stale bot added the issue/stale label Oct 20, 2020
@6543 6543 added this to the 1.14.0 milestone Oct 20, 2020
@stale stale bot removed the issue/stale label Oct 20, 2020
@6543 6543 added modifies/api This PR adds API routes or modifies them issue/stale labels Oct 20, 2020
@stale stale bot removed the issue/stale label Oct 20, 2020
@6543 6543 marked this pull request as ready for review October 20, 2020 18:05
@zeripath zeripath changed the title WIP: allow creating repository from a template via the API Allow creating repository from a template via the API Oct 21, 2020
@stale
Copy link

stale bot commented Dec 25, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions.

@stale stale bot added the issue/stale label Dec 25, 2020
@stale stale bot removed the issue/stale label Dec 25, 2020
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Dec 27, 2020
@6543 6543 added the pr/wip This PR is not ready for review label Dec 27, 2020
@6543 6543 modified the milestones: 1.14.0, 1.15.0 Feb 2, 2021
@techknowlogick techknowlogick modified the milestones: 1.15.0, 1.16.0 Jun 15, 2021
@6543
Copy link
Member Author

6543 commented Jul 4, 2021

-> #15958

@6543 6543 closed this Jul 4, 2021
@6543 6543 deleted the api_repo-cration_option-template_11535 branch July 4, 2021 13:04
@6543 6543 removed this from the 1.16.0 milestone Jul 4, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/api This PR adds API routes or modifies them pr/wip This PR is not ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow creating repository from a template via the API
5 participants